//
//  CWQ_MeTableHeaderView.m
//  BaxTer
//
//  Created by 陈武琦 on 16/8/31.
//  Copyright © 2016年 陈武琦. All rights reserved.
//

#import "CWQ_MeTableHeaderView.h"
#import "UIView+roundRect.h"
@implementation CWQ_MeTableHeaderView


- (void)awakeFromNib {
    [super awakeFromNib];
    [self.headBtn cwq_cornerRadius:40 borderColor:[UIColor whiteColor] borderWidth:1];
    
    [self.leaderBoard cwq_cornerRadius:12.5 borderColor:nil borderWidth:0];
    [self.practiceBtn cwq_cornerRadius:8 borderColor:nil borderWidth:0];

}

- (IBAction)headBtnClick:(id)sender {
    if ([_delegate respondsToSelector:@selector(headView:clickHeadBtn:)]) {
        [_delegate headView:self clickHeadBtn:sender];
    }
}
- (IBAction)trainCampClick:(id)sender {
    if ([_delegate respondsToSelector:@selector(headView:clickTrainCampBtn:)]) {
        [_delegate headView:self clickTrainCampBtn:sender];
    }
}
- (IBAction)learnedClick:(id)sender {
    if ([_delegate respondsToSelector:@selector(headView:clickLearnedBtn:)]) {
        [_delegate headView:self clickLearnedBtn:sender];
    }
    
}
- (IBAction)integralClick:(id)sender {
    if ([_delegate respondsToSelector:@selector(headView:clickIntegralBtn:)]) {
        [_delegate headView:self clickIntegralBtn:sender];
    }
}
- (IBAction)leaderBoardClick:(id)sender {
    if ([_delegate respondsToSelector:@selector(headView:leaderBoardBtn:)]) {
        [_delegate headView:self leaderBoardBtn:sender];
    }
}

@end
